-- GENERATED SPELL FOR [Nethergarde Soldier] --


function spell0_5999(pUnit, Event) --@Improved Blocking,Self--
pUnit:FullCastSpellOnTarget(3248,pUnit)
pUnit:RegisterEvent('Sorts_5999', 6271, 1)
end

function spell1_5999(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5999', 8315, 1)
end

function Sorts_5999(pUnit, Event)
local choix_sorts_5999 = math.random(0, 1)
if choix_sorts_5999 == 0 then
pUnit:RegisterEvent('spell0_5999', 1, 1)
end
if choix_sorts_5999 == 1 then
pUnit:RegisterEvent('spell1_5999', 1, 1)
end
end

function mob5999_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5999', math.random(1500, 3000), 1)
end

function mob5999_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5999_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5999_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5999, 1, 'mob5999_Action')
RegisterUnitEvent(5999, 2, 'mob5999_Leave')
RegisterUnitEvent(5999, 3, 'mob5999_Kill')
RegisterUnitEvent(5999, 4, 'mob5999_Die')
